import request from '@/utils/request'
export default {
    //获取活期基金分页列表
    getBank(page, limit, bank) {
        return request({
            url: `/bank/selectAll/${page}/${limit}`,
            method: 'post',
            data: bank

        })
    },
    //移除活期基金到回收站或者删除
    saveBank(bank) {
        return request({
            url: `/bank/add`,
            method: 'put',
            data: bank
        })
    },
    //删除活期基金
    deleteBankById(id) {
        return request({
            url: `/bank/delete/${id}`,
            method: 'get',

        })
    },
    //编辑活期基金
    updateBank(bank) {
        return request({
            url: `/bank/update`,
            method: 'put',
            data: bank

        })
    },
    getBankById(id) {
        return request({
            url: `/bank/getOne/${id}`,
            method: 'get',
        })
    },
}

